.code-editor-container {
  display: flex;
  flex-direction: column;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  margin: 20px 0;
}

.editor-header {
  padding: 8px;
  background: #282a36;
  border-bottom: 1px solid #44475a;
}

.language-select {
  padding: 4px 8px;
  background: #44475a;
  color: #f8f8f2;
  border: 1px solid #6272a4;
  border-radius: 4px;
  cursor: pointer;
}

.language-select:hover {
  border-color: #bd93f9;
}

.editor-content {
  height: 400px;
  background: #282a36;
}

.editor-footer {
  display: flex;
  gap: 8px;
  padding: 8px;
  background: #282a36;
  border-top: 1px solid #44475a;
}

.run-btn,
.submit-btn {
  flex: 1;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.run-btn:hover,
.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.run-btn {
  background: #50fa7b;
  color: #282a36;
}

.run-btn:hover {
  background: #69ff94;
}

.submit-btn {
  background: #bd93f9;
  color: #f8f8f2;
}

.submit-btn:hover {
  background: #d1a8ff;
}

.CodeMirror {
  height: 100%;
  font-family: 'Fira Code', Consolas, Monaco, 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.6;
}

.CodeMirror-gutters {
  border-right: 1px solid #44475a;
  background: #282a36;
}

.CodeMirror-linenumber {
  color: #6272a4;
}

@media (max-width: 768px) {
  .code-editor-container {
    margin: 16px 0;
  }
  
  .editor-content {
    height: 300px;
  }
  
  .run-btn,
  .submit-btn {
    padding: 6px 12px;
    font-size: 13px;
  }
}
